extends OrbitComponentBase
class_name OrbitPlantComponent

@export var angle_in_radians:float = PI / 4
@export var angular_velocity:float = PI / 2

func _orbit(delta):
	angle_in_radians += delta * angular_velocity
	var offset := Vector2(cos(angle_in_radians), sin(angle_in_radians)) * radius
	global_position = rotation_center.global_position + offset
	
	look_at(rotation_center.global_position)
